package com.rerun.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.rerun.entity.BlackList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface Black list mapper.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /10/26 11:50
 */
public interface BlackListMapper extends BaseMapper<BlackList>{

    /**
     * Select by member id and park id black list.
     *
     * @param memberId the member id
     * @param parkId   the park id
     * @return the black list
     */
    BlackList   selectByMemberIdAndParkId(@Param("memberId") String memberId, @Param("parkId") long parkId);

    /**
     * Select page by member id list.
     *
     * @param pagination the pagination
     * @param memberId   the member id
     * @return the list
     */
    List<String> selectPageByMemberId(Pagination pagination, @Param("memberId") String memberId);
}
